<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>

    <script>
        //利用扩展运算符将类数组或者可遍历对象转换为真正的数组
        let Divs = document.querySelectorAll('div');
        console.log(Divs);
        var ary = [...Divs];
        console.log(ary);
        ary.push('a');
        console.log(ary);
    </script>
</body>
</html>